package com.cuntian.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class PageDTO {
    @Min(value = 1, message = "page的最小值是1")
    @NotNull(message = "page不能为空")
    private Integer page;
    @Max(value = 1, message = "pageSize的最大值是100")
    @NotNull(message = "pageSize不能为空")
    private Integer pageSize;
}
